<template>
  <div class="category">
    <h2>{{title}}</h2>
    <div class="content">
      <slot>等待填充中.....</slot>  
    </div>
  </div>
</template>

<script>
  export default {
    name:'Category',
    props:['title']
  }
</script>

<style scoped>
  .category {
    width: 200px;
    height: 300px;
    background-color: skyblue;
    box-shadow: 0 0 10px;
    border-radius: 10px;
    padding: 5px;
  }
  h2 {
    text-align: center;
    background-color: orange;
  }
  img,video {
    width: 100%;
  }
</style>